﻿
--[[
    @brief    ui logic for lol_repair ui
    @author   dragonqiu
    @version  1.0
    @date     2015-03-25
--]]

repair_game_model = 
{
    fix_toolbox = nil;
    
    game2dlg_ = {};
    js2game_ = {};

    wg_repair_latest_ = nil;
    warning_tips_id_ = nil;

    is_request_repo_repair_cfg_ = false;
    repo_repair_cfg_name = "repo_repair_cfg";
    repo_stable_version_ = "";
    game_sel_url = LoadStr("REPAIR_GAME_SEL_URL");  -- 游戏选择界面

    init = function()
        if repair_model.tgp_web_url == nil or repair_model.tgp_web_url == "" then
            repair_model.get_web_url();
        end
        --repair_game_model.pageUrl = repair_model.tgp_web_url.."repair_game.html";
        repair_game_model.pageUrl = LoadStr("TOOLBOX_REPAIRER");
    end;

    get_fix_toolbox = function()
        if nil == repair_game_model.fix_toolbox then
            repair_game_model.fix_toolbox =
            base_utility.get_component_adapter("IFixToolbox",
                "ierd_tgp.fix_toolbox.GetFixToolboxAdapter();");
        end;
        return repair_game_model.fix_toolbox;
    end;

};

repair_game_model.init();
